package com.msl.debezium.mapper;

import com.msl.debezium.dto.UserDto;
import com.msl.debezium.request.QueryUserListReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface UserMapper {

    List<UserDto> queryUserList(@Param("req") QueryUserListReq req);

    Integer addUser(@Param("list") List<UserDto> list);

    Integer countAddByTable(@Param("tableName") String tableName,
                            @Param("startDate") Date startDate,
                            @Param("endDate") Date endDate);

}
